#include <iostream>

using namespace std;

class G{
    public:
    G(){
        cout<<"这是G爹"<<endl;
    }
    G(int _a){
        a = _a;
        cout<< "G的值"<<a<<endl;
    }
    ~G(){
        cout<<"这是G爹的析构"<<endl;
    }
    private:
    int a;
};
class F{
    public:
    F(){
        cout<<"这是F爹"<<endl;
    }
    F(char _b){
        b = _b;
        cout<< "F的值"<<b<<endl;
    }
    ~F(){
        cout<<"这是F爹的析构"<<endl;
    }
    private:
    char b;
};
class S:public G,public F{
    public:
    S(){
        cout<<"这是S"<<endl;
    }

    private:
    short c;
};
int main(int argc, char const *argv[])
{
    S s1;
    s1:G(),F();
    // cout<<sizeof(s1)<<endl;
    return 0;
}
